package com.an.blog.admin.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.an.common.annotation.ExcelDictFormat;
import com.an.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 博客评论视图对象 blog_comment
 *
 * @author Ann
 * @date 2023-05-08
 */
@Data
@ExcelIgnoreUnannotated
public class BlogCommentVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long commentId;

    /**
     * 评论人头像
     */
    @ExcelProperty(value = "评论人头像")
    private String avatar;

    /**
     * 评论人昵称
     */
    @ExcelProperty(value = "评论人昵称")
    private String nickName;

    /**
     * 评论内容
     */
    @ExcelProperty(value = "评论内容")
    private String commentContent;


    /**
     * 回复评论人昵称
     */
    @ExcelProperty(value = "回复评论人昵称")
    private String answerNickName;

    /**
     * 评论主题（0文章 1说说）
     */
    @ExcelProperty(value = "评论类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=文章,1=说说")
    private String topic;

    /**
     * 评论主题内容
     */
    @ExcelProperty(value = "评论主题内容")
    private String topicContent;


    /**
     * ip属地
     */
    @ExcelProperty(value = "ip属地")
    private String ipSource;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 点赞数量
     */
    @ExcelProperty(value = "点赞数量")
    private Long likedCount;


    /**
     * 创建时间
     */
    @ExcelProperty(value = "评论时间")
    private Date createTime;
}
